import i18n from '../../../i18n/i18n'
export const tableOption = {
  border: true,
  stripe: true,
  menuAlign: 'center',
  menuWidth: 350,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: false,
  searchBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: i18n.t('users.nickName'),
    prop: 'nickName'
  }, {
    label: i18n.t('distributionMsg.distriTelPhone'),
    search: true,
    searchLabelWidth: i18n.t('language') === 'language' ? 180 : 120,
    prop: 'userMobile'
  },
  {
    label: i18n.t('distributionMsg.inviteesPhoneNumber'),
    search: true,
    slot: true,
    searchLabelWidth: i18n.t('language') === 'language' ? 180 : 120,
    prop: 'parentUserMobile'
  }, {
    label: i18n.t('distributionMsg.invitees'),
    prop: 'parentName',
    slot: true
  },
  {
    label: i18n.t('distributionMsg.joiningTime'),
    width: 170,
    prop: 'bindTime',
    sortable: 'custom'
  }, {
    label: i18n.t('distributionMsg.cumulativeCustomers'),
    prop: 'boundCustomers',
    sortable: 'custom',
    slot: true
  }, {
    label: i18n.t('distributionMsg.cumulativeInvitation'),
    prop: 'invitedVeeker',
    sortable: 'custom',
    slot: true
  }, {
    label: i18n.t('distributionMsg.cumulativeIncome'),
    prop: 'addupAmount',
    sortable: 'custom',
    slot: true

  }, {
    width: 150,
    label: i18n.t('product.status'),
    prop: 'state',
    type: 'radio',
    dicData: [
      {
        label: i18n.t('product.pendingReview'),
        value: 0
      }, {
        label: i18n.t('publics.normal'),
        value: 1
      }, {
        label: i18n.t('distribUserWallet.banned'),
        value: -1
      }, {
        label: i18n.t('distribUserWallet.cleared'),
        value: 2
      }, {
        label: i18n.t('publics.unPassed'),
        value: 3
      }
    ]
  }
  ]
}
